<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description('Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=50335">https://bugs.webkit.org/show_bug.cgi?id=50335</a>');

var input = document.createElement('input');

input.setAttribute('incremental', '')
shouldBeTrue('input.incremental');

input.removeAttribute('incremental');
shouldBeFalse('input.incremental');

input.incremental = true;
shouldBeTrue('input.hasAttribute("incremental")');

input.incremental = false;
shouldBeFalse('input.hasAttribute("incremental")');
</script>
</body>
</html>
